﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SamplesTest
{
	/// <summary>
	/// This class is used in sample tests for demonstrating different mock scenarios.
	/// </summary>
	public class EchoClass
	{
		public string Data = null;

		/// <summary>
		/// Get and set property.
		/// </summary>
		public string DataProperty
		{
			get { return Data; }
			set { Data = value; }
		}

		/// <summary>
		/// Returns the specified string parameter.
		/// </summary>
		public string Echo(string arg)
		{
			return arg;
		}

		/// <summary>
		/// A static version of the echo function
		/// </summary>
		public static string StaticEcho(string arg)
		{
			return arg;
		}
	
		/// <summary>
		/// Returns the specified integer parameter.
		/// </summary>
		public int Echo(int arg)
		{
			return arg;
		}


		/// <summary>
		/// Returns the combination of parameters
		/// </summary>
		public string EchoCombine(string arg1, string arg2)
		{
			return arg1 + ":" + arg2;
		}


		/// <summary>
		/// Sets the specified parameter in the Data field.
		/// </summary>
		public void Set(string arg)
		{
			Data = arg;
		}


		/// <summary>
		/// Set the data field to the "const" value.
		/// </summary>
		public void Set()
		{
			Data = "const";
		}


		public DateTime GetCurrentDate()
		{
			return DateTime.Now;
		}
	}
}
